package com.zt.ztyh.mapper;

import com.zt.ztyh.entity.ZtyhRecording;
import com.zt.ztyh.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zt.ztyh.vo.common.Result;
import io.lettuce.core.dynamic.annotation.Param;

import java.math.BigDecimal;
import java.util.List;

/**
* @author 卫相阳
* @description 针对表【ztyh_user】的数据库操作Mapper
* @createDate 2024-04-02 18:47:30
* @Entity com.ztyh.pojo.User
*/
public interface UserMapper extends BaseMapper<User> {


    User login(@Param("userName") String userName, @Param("password") String password);

    User selectByUsername(String username);

    User selectByPhone(String phone);

    void updateByUn(@Param("id") Long id,@Param("amount") BigDecimal amount);

    void updateByUns(Long id, BigDecimal amount);

    void updates(@org.apache.ibatis.annotations.Param("realname") String realname, @org.apache.ibatis.annotations.Param("idcard") String idcard,@org.apache.ibatis.annotations.Param("id") Long id);

    User selectbyId(Long id);

    void updateByUne(Long id, BigDecimal amount);

    User getPhoneUsersname(@Param("realname") String realname,@Param("phone") String phone);

    int updateUnAmount(@Param("phone") String phone,@Param("amount") BigDecimal amount);
}




